package com.githan.phone_store_demo.reposity;

import com.githan.phone_store_demo.entity.PhoneInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/4/18 19:10
 */
public interface PhoneInfoReposity extends JpaRepository<PhoneInfo,Integer> {

    //根据类型查询手机
    public List<PhoneInfo> findByCategoryType(Integer categoryType);

}
